Post

Replies

Boosts

Views

Activity

Is it possible only the watch app to be the main function?
I'm thinking of an app where only the watch app is the main function. However, since all functions are not available in the Watch app, we are thinking about handling some functions in the iPhone/iPad app. So, the Apple Watch standalone app seems impossible. In the iPhone/iPad, we are thinking of managing files and converting those files and transferring them to the Watch app. And the watch app plays the received file. (The main function is to play the file) The iPhone/iPad app does not play files. In the above case, I am wondering if our app can pass the Apple review.
0
0
282
Dec ’20
KCTKernAttributeName option not working in CTFrameGetLines
KCTKernAttributeName option not working in CTFrameGetLines I am trying to get a multiline of text from an NSMutableAttributedString via CTFrameGetLines. All other options are applied, but kCTKernAttributeName option is not reflected in CTFrameGetLines. Even if I put the value of kCTKernAttributeName in NSMutableAttributedString, it behaves as if there is no kCTKernAttributeName value. Is there any solution or cause?
0
0
591
Jan ’21
iOS 15 UIPickerView Delay on Start of Scrolling?
We are testing an app currently on sale on iOS 15. When I start scrolling up and down by touch in a UIPickerView , the scrolling is not smooth. There is a short break when you start scrolling. If I flick it quickly, it stops and after a while it has already scrolled to where some data has advanced. If we start scrolling and keep scrolling, then we don't have the above symptoms. The above symptoms start after the app does a big operation while loading a file. That is, when the symptom starts, it is there in the UIPickerView throughout the app. Only UIPickerView scrolling, other screen transitions or UITableView scrolling do not show such symptoms. There is no such symptom until iOS 14. Could you give us some advice on the cause of the above symptoms or how to improve it? The device tested is an iPhone 8 plus. We did send feedback to Apple through the Feedback app on devices that currently have iOS 15 installed.
Topic: UI Frameworks SubTopic: UIKit Tags:
2
0
1.3k
Oct ’21
Apple's Policy on Rewarded Video Ads
In the app, when users view AdMob rewarded video ads, banner ads are removed for a certain period of time and some additional features are provided. However, we had previously supported rewarded video ads without in-app purchases in the app, but were rejected by the app review. And after adding in-app purchases, it passed the review. Could it be that Apple's policy does not yet allow only rewarded video ads to be added to the app? Or is there any way ?
0
0
645
Aug ’21
Black screen when running the app on the iPad app
This is the app we are currently selling. If you follow the steps below, you may experience a black screen phenomenon. Run the app and go to the home screen. Turn off the screen of the device and do not use it for a long time. Turn on the device's screen and launch the app from the home screen. Randomly, the entire app screen is black and nothing works. If you completely close the app and run it again, it will run normally. It has been reported to us since iOS 15. And in iOS 15 and iOS 14.8, a user sent us an email about the same phenomenon. This only happens on the iPad, not the iPhone. Supports iPad multitasking UIApplicationSupportsMultipleScenes is not supported. Can anyone advise us on the cause or solution of this symptom?
1
0
1.1k
Oct ’21
Swift Array removeAll() performance (slow)
Using Swift Array I found removeAll() to be very slow and not perform well. Especially the larger the array (the more objects it contains), the slower it was. Is there a way to achieve good performance while performing the same function as removeAll() of an array? "= []" This method also performed the same. And the way to declare the array after making it optional had the same performance. swift / xcode is the latest version and is being tested on iOS 15.4 / iOS 14.8 / iphone6s. Or can't Apple make a new function that speeds up the performance of removeAll()??
2
0
1k
Mar ’22
Dynamic Libraries Link and Licenses
When building the external library project, I selected "Mach-O Type" as "Dynamic Library" and built it to create a framework file (folder). And this framework file was imported and used in our app and distributed to the App Store. Is this situation required to release the entire source code of our app under the LGPL 2.1 (or LGPL 3.0) license? Enter file in the Mac command line and press Enter, “dynamically linked shared library” is displayed.
2
0
1.7k
Aug ’22
Can you check with @available if your iOS app is running on Mac?
I don't want the function to be included if the iOS app is running on a Mac. (Designed for iPad) For example the sample code below @available(iOS 13.4, *) func keyPressed(_ key: UIKey) { .. } The keyPressed function is included when running in iOS or iPadOS. I would like to know if there is a way to prevent the keyPressed function from being included at launch time, even when running an iOS app as "Designed for iPad" on M1/M2 devices. "targetEnvironment(macCatalyst)" When this is called, false is unconditionally displayed, so the distinction cannot be made. #if ProcessInfo().isiOSAppOnMac func keyPressed(_ key: UIKey) { .. } #endif If you use the code above, ProcessInfo cannot be executed in RunTime, so false is output unconditionally. So far I'm looking for a possible way, but there doesn't seem to be any possible way. If anyone has solved this problem, please reply.
1
0
722
Sep ’22
In Live Text API, text selection or clicking the highlight button on the right does not work
I am implementing Live Text function using ImageAnalysisInteraction and ImageAnalyzer. After loading an image file into UIImageView , I am trying to implement a function to select like a TextView using Live Text function. On the right side of the UIImageView, a button to change the Live Text highlight state is displayed. However, there is a phenomenon that this button cannot be clicked. Also, even if you change the highlight state to Live Text, it is not selected like UITextView. imageView.addInteraction(interaction) I added an interaction to the imageview like this. Even if I keep changing preferredInteractionTypes to multiple types, there is no choice. interaction.view!.isUserInteractionEnabled = true imageView.isUserInteractionEnabled = true So I also changed the isUserInteractionEnabled value to true . Have any of you solved this problem?
0
0
1k
Oct ’22
Can you tell me the cause of the crash that occurs when AVSpeechSynthesizer is stopped?
We are providing the ability to speak text in our app using AVSpeechSynthesizer . Stop the AVSpeechSynthesizer at random I get a crash like the screenshot below. What causes this error to occur? It happens occasionally during testing, but it doesn't go away even if I fix it in various ways. Is this a bug in iOS or is there something I need to fix or add? If a crash occurs, the message below is also displayed in the log window during debugging. [AXTTSCommon] _BeginSpeaking: speech cancelled error: Error Domain=TTSErrorDomain Code=-4005 "(null)" [AXTTSCommon] _BeginSpeaking: couldn't begin playback TTS Create Code let utterance = AVSpeechUtterance(string: playText) if Singletone.sharedInstance().ttsIdentifier != nil { utterance.voice = AVSpeechSynthesisVoice(identifier: Singletone.sharedInstance().ttsIdentifier!) } else {         utterance.voice = AVSpeechSynthesisVoice(language: "en-US") }          utterance.rate = 0.4 utterance.pitchMultiplier = 1.0 utterance.preUtteranceDelay = -1.0 utterance.postUtteranceDelay =  -1.0 utterance.volume = 1.0          if self.synthesizer == nil { self.synthesizer = AVSpeechSynthesizer() self.synthesizer!.delegate = self }          self.synthesizer!.speak(utterance) TTS Stop Code self.synthesizer!.stopSpeaking(at: .immediate) self.synthesizer!.delegate = nil self.synthesizer = nil
1
0
1.2k
Oct ’22
Is there any way to fix screen rotation in iPad apps that don't use the Requires Full Screen option?
Is there a way to lock the rotation of the app when the app is in full screen state in an iPad app that doesn't use Requires Full Screen? Disable Requires Full Screen option func application(_ application: UIApplication, supportedInterfaceOrientationsFor window: UIWindow?) I know that even if the above function returns a value that locks the rotation, the device is not. But iPad users who use my app send me an email asking if I can provide a function to lock the rotation of the app. I would like to know if there is a way to lock the rotation even when in full screen. Or can't Apple support it in a future update?
0
0
732
Oct ’22
AVSpeechSynthesizer continues to play even after playback stops and the app crashes (iOS 16+)
Currently, there is an issue that only occurs on iOS 16 devices. We provide TTS function to pronounce Text using AVSpeechSynthesizer. When I stop AVSpeechSynthesizer, sometimes the sentence is played without stopping. After that, if we put nil or declare a new AVSpeechSynthesizer object like the code below "self.synthesizer = nil or self.synthesizer = AVSpeechSynthesizer()" The app crashes. This issue was previously posted on the forum https://developer.apple.com/forums/thread/716963 It's like this problem. (It is believed to be the cause of this problem.) This phenomenon occurs randomly when playing, stopping, and repeating a sentence. So it is not easy to reproduce. We're getting crash reports from our app, but it's only happening on iOS 16 devices. Does anyone have a cause or solution for this symptom? I've been looking for a solution for a few weeks now and haven't been able to find a suitable solution. We believe this may be a bug in iOS 16. I am currently testing on the latest version of iOS 16.0.3. It still happens occasionally. If we can reproduce this phenomenon with 100% probability, we will give feedback to Apple, but we have to repeat it several times, so we do not think about feedback. and additionally Even when leaving the current screen, the app dies after this happens. If we nil or not initialize the AVSpeechSynthesizer object after stopping the TTS loop in our app, "self.synthesizer!.speak(utterance)" As in the code above, there is a phenomenon that playback does not play even if you try to play it.
0
0
785
Oct ’22